package com.lenovo.lcdm.team.common.util;

import org.springframework.security.core.context.SecurityContextHolder;

/**
 * @Auther xujing30
 * @Date 2024/01/17
 * @Description
 */
public class ContextUtil {
    /**
     * 获取当前登录的用户的itCode
     * @return
     */
    public static String getCurrentUser(){
        return SecurityContextHolder.getContext().getAuthentication().getName();
    }
}
